// interfaceList/api.ts
import type { AxiosRequestConfig } from 'axios'
import type { ApiResult } from '@/types/app'
import type { RequestOptions } from '@/utils/http'
import { http } from '@/utils/http'
export const dataFlowCharteringApi = {
  /** 获取接口列表 */
  getListPattern(config?: AxiosRequestConfig<any>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/flow/list-pattern', ...config }, options)
  },
  /** 请求网络域 */
  getListNetwork(config?: AxiosRequestConfig<any>, options?: RequestOptions) {
    return http.get<ApiResult<any>>({ url: '/risk/api/v1/flow/list-domain', ...config }, options)
  },
  /** 站点 */
  getListSite(config?: AxiosRequestConfig<any>, options?: RequestOptions) {
    return http.post<ApiResult<any>>({ url: '/risk/api/v1/flow/svcSite-list', ...config }, options)
  }
}
